import java.io.*;

public class Statistik {

	public static void main(String[] args) 
	{
		try
		{
			
			FileReader input = new FileReader("zahlenFolge.txt");
			BufferedReader br = new BufferedReader(input);
			String strLine;
	  
			double[] numberArray = new double[Integer.parseInt(br.readLine())];
	  
			int counter = 0;
			while ((strLine = br.readLine()) != null)  
			{
				numberArray[counter] = Double.parseDouble(strLine);
				counter++;
			}
			input.close();
			
			
			System.out.println(String.format("%.5f", average(numberArray)));
			System.out.println(distinct(numberArray));
			System.out.println(String.format("%.5f",median(numberArray)));
     	}
	    catch (Exception e)
	    {
	    	System.err.println("Error: " + e.getMessage());
	    }
	}
	
	public static double average(double[] array)
	{
		double sum = 0;
		for (int i = 0; i < array.length; i++) 
		{
			sum += array[i]; 
		}
		
		return sum / array.length;
	}

	public static boolean distinct(double[] array)
	{
		sortArray(array);
		
		for (int i = 0; i < array.length - 1; i++) {
			if(array[i] == array[i+1]) return false;
		}
		
		return true;
	}
	
	public static double median(double[] array)
	{
		array = sortArray(array);
		
		return array[(int)(array.length / 2)];
	}
	
	private static double[] sortArray(double[] array)
	{
		for (int i = 0; i < array.length; i++) 
		{
			for (int j = 0; j < array.length - i - 1; j++)
			{
				if (array[j] > array[j + 1])
				{
					array[j] = array[j] + array[j + 1];
					array[j + 1] = array[j] - array[j + 1];
					array[j] = array[j] - array[j + 1];
				}
			}
		}
		
		return array;
	}
	
	
}
